/*
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-17 20:42:06
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-18 17:03:54
 */
import type { RouteRecordRaw } from "vue-router";
import { Setting } from '@element-plus/icons-vue';

const routes: RouteRecordRaw[] = [
    // 消息中心
    {
        path: '/message',
        redirect: '/message/todo',
        component: () => import('@/views/Message/index.vue'),
        meta: {
            menu: '消息中心',
            icon: "icon-xiaoxizhongxin",
        },
        children: [
            //待办中心
            {
                path: '/message/todo',
                component: () => import('@/views/Message/Todo/index.vue'),
                meta: {

                    //这是 一个面包屑
                    breadcrumbs: [
                        { title: '消息中心' },
                        { title: '管理列表' },
                        { to: '/message/todo', title: '待办中心' }
                    ],
                    menu: '待办中心',
                      icon: "icon-hetongguanli",
                },
            },
            //系统消息
            {
                path: '/message/sysinfo',
                component: () => import('@/views/Message/Sysinfo/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '消息中心' },
                        { title: '管理列表' },
                        { to: '/message/sysinfo', title: '系统消息' }
                    ],
                    menu: '系统消息',
                      icon: "icon-hetongguanli",
                }
            },

        ]
    },

];

export default routes;
